package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 投资理财
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2024-02-24 21:57:15
 */
@TableName("touzilicai")
public class TouzilicaiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public TouzilicaiEntity() {
		
	}
	
	public TouzilicaiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId(type = IdType.AUTO)
    private Long id;
	/**
	 * 产品名称
	 */
					
	private String chanpinmingcheng;
	
	/**
	 * 图片
	 */
					
	private String tupian;
	
	/**
	 * 产品单价
	 */
					
	private Double chanpindanjia;
	
	/**
	 * 购买份额
	 */
					
	private Double goumaifene;
	
	/**
	 * 投资总额
	 */
					
	private Double touzizonge;
	
	/**
	 * 年收益
	 */
					
	private String nianshouyi;
	
	/**
	 * 风险等级
	 */
					
	private String fengxiandengji;
	
	/**
	 * 发行机构
	 */
					
	private String faxingjigou;
	
	/**
	 * 投资时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date touzishijian;
	
	/**
	 * 用户账号
	 */
					
	private String yonghuzhanghao;
	
	/**
	 * 用户姓名
	 */
					
	private String yonghuxingming;
	
	/**
	 * 手机号
	 */
					
	private String shoujihao;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：产品名称
	 */
	public void setChanpinmingcheng(String chanpinmingcheng) {
		this.chanpinmingcheng = chanpinmingcheng;
	}
	/**
	 * 获取：产品名称
	 */
	public String getChanpinmingcheng() {
		return chanpinmingcheng;
	}
	/**
	 * 设置：图片
	 */
	public void setTupian(String tupian) {
		this.tupian = tupian;
	}
	/**
	 * 获取：图片
	 */
	public String getTupian() {
		return tupian;
	}
	/**
	 * 设置：产品单价
	 */
	public void setChanpindanjia(Double chanpindanjia) {
		this.chanpindanjia = chanpindanjia;
	}
	/**
	 * 获取：产品单价
	 */
	public Double getChanpindanjia() {
		return chanpindanjia;
	}
	/**
	 * 设置：购买份额
	 */
	public void setGoumaifene(Double goumaifene) {
		this.goumaifene = goumaifene;
	}
	/**
	 * 获取：购买份额
	 */
	public Double getGoumaifene() {
		return goumaifene;
	}
	/**
	 * 设置：投资总额
	 */
	public void setTouzizonge(Double touzizonge) {
		this.touzizonge = touzizonge;
	}
	/**
	 * 获取：投资总额
	 */
	public Double getTouzizonge() {
		return touzizonge;
	}
	/**
	 * 设置：年收益
	 */
	public void setNianshouyi(String nianshouyi) {
		this.nianshouyi = nianshouyi;
	}
	/**
	 * 获取：年收益
	 */
	public String getNianshouyi() {
		return nianshouyi;
	}
	/**
	 * 设置：风险等级
	 */
	public void setFengxiandengji(String fengxiandengji) {
		this.fengxiandengji = fengxiandengji;
	}
	/**
	 * 获取：风险等级
	 */
	public String getFengxiandengji() {
		return fengxiandengji;
	}
	/**
	 * 设置：发行机构
	 */
	public void setFaxingjigou(String faxingjigou) {
		this.faxingjigou = faxingjigou;
	}
	/**
	 * 获取：发行机构
	 */
	public String getFaxingjigou() {
		return faxingjigou;
	}
	/**
	 * 设置：投资时间
	 */
	public void setTouzishijian(Date touzishijian) {
		this.touzishijian = touzishijian;
	}
	/**
	 * 获取：投资时间
	 */
	public Date getTouzishijian() {
		return touzishijian;
	}
	/**
	 * 设置：用户账号
	 */
	public void setYonghuzhanghao(String yonghuzhanghao) {
		this.yonghuzhanghao = yonghuzhanghao;
	}
	/**
	 * 获取：用户账号
	 */
	public String getYonghuzhanghao() {
		return yonghuzhanghao;
	}
	/**
	 * 设置：用户姓名
	 */
	public void setYonghuxingming(String yonghuxingming) {
		this.yonghuxingming = yonghuxingming;
	}
	/**
	 * 获取：用户姓名
	 */
	public String getYonghuxingming() {
		return yonghuxingming;
	}
	/**
	 * 设置：手机号
	 */
	public void setShoujihao(String shoujihao) {
		this.shoujihao = shoujihao;
	}
	/**
	 * 获取：手机号
	 */
	public String getShoujihao() {
		return shoujihao;
	}

}
